import { createContext } from "preact";
import { useContext } from "preact/hooks";


export const FunctionContext = createContext<((...args:any[]) => any)[]>([]);

export const useFunctionContext = () => useContext(FunctionContext);